{extend name="user/userinfo" /}
{block name="user"}

<div class="wrap subg mt10">
    <div class="sbg2 clearfix">
        <div class="side sub_nav fl">
            <a  href="{:url('index/user/myjob',['status'=>1])}"><em class="icon02"></em>我的兼职</a>
            <a  href="{:url('index/user/index')}"><em class="icon03"></em>个人信息</a>
            <a  href="{:url('index/user/pass')}"><em class="icon17"></em>密码管理</a>
            <a  href="{:url('index/user/mycollect')}"><em class="icon04"></em>我的收藏</a>
            <a class="on" href="{:url('index/user/myinvite')}"><em class="icon05"></em>邀请我的</a>
            <a  href="{:url('index/user/integral')}"><em class="icon15"></em>积分积累说明</a>
        </div>


        <div class="sub_cont fr mycont" style="min-height:620px;">
            <ul class="job_nav mb10">
                <li {if $flag==1}class="on"{/if} onclick="window.location.href='{:url(\'index/user/myinvite\',[\'status\'=>1])}'" style="cursor:pointer">最新邀请（{$num[0]}）</li>丨
                <li {if $flag==2}class="on"{/if} onclick="window.location.href='{:url(\'index/user/myinvite\',[\'status\'=>2])}'" style="cursor:pointer">已同意（{$num[1]}）</li>丨
                <li {if $flag==3}class="on"{/if} onclick="window.location.href='{:url(\'index/user/myinvite\',[\'status\'=>3])}'" style="cursor:pointer">已拒绝（{$num[2]}）</li>
            </ul>
            <div class="job_box">
                <div class="job_cont">
                    {if $flag==1}
                    <div class="del">
                        <input type="checkbox" onclick="selectAlll(this,'cid')" >
                        <label class="ml5 mr15">全选</label>
                        <span class="mr5">操作：</span>
                        {if $arr}
                        <button class="on" id="collect_invite_yes_button">同意</button>
                        {/if}
                        <button id="collect_invite_delete_button">拒绝</button>
                    </div>
                    {/if}
                    <div class="delbox">

                        {if $arr}
                        {volist name="arr" id="value"}
                        <div class="delbox">
                            {if $flag==1}
                            <div class="del">
                                <span class="fr">最新邀请</span>
                                <input type="checkbox" name="cid" value="{$value.position_id}">
                            </div>
                            {elseif $flag==2 or $flag==3}
                            <div class="del">

                            </div>
                            {/if}
                            <div class="list">
                                <a class="title fontS16 clearfix" href="">
                                    <span class="fontC01 fl">{$value.position_name}</span>
                                </a>
                                <div class="cont lineH24 mt10">
                                    <p>工作地址：{$value.position_place}</p>
                                    <p>工作时间：{:date('Y-m-d',$value.position_start)}至{:date('Y-m-d',$value.position_end)}</p>
                                </div>
                            </div>
                            <div class="del center"></div>
                        </div>
                        {/volist}
                        {else/}
                        <div class="list" style="border:1px solid #dbdbdb;text-align:center;">
                            <b>暂无数据</b>
                        </div>
                        {/if}
                    </div>


                    <input type="hidden" name="page_num" id="page_num" value="1"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function updatestate(state){
        var obj = $("input[name='interwiev_id']:checked");
        var jobid = new Array();
        var jobname = new Array();
        var i = 0;
        obj.each(function(){
            jobid[i] =  $(this).val();
            jobname[i] =  $(this).attr('alt');
            i++;
        })
        $.get('my.php?act=operate_company_interview_all&state='+state+'&jobid='+jobid+'&jobnamearr='+jobname,function(data){
            if(data != 1){
                alert(data);
            }
            window.location.reload();



        })

    }


</script>
{/block}
